The Slider Component > FSlider.setTickStyle() |
FSlider.setTickStyle()
Availability
Flash Player 6.
Usage
mySlider_sld.setTickStyle (style)
Parameters
style A string specifying where the tick marks will be placed. Valid values
for this parameter are "top", "bottom". "both" and "none".
Returns
Nothing
Description
Sets where or if tick marks will appear on the slider component. Valid values, as well as a description of how they affect tick mark placement are in the table below.
none |
No tick marks will appear. |
top |
Tick marks will appear at the top of the slider. |
bottom |
Tick marks will appear at the bottom of the slider. |
both |
Tick marks will appear at the top and bottom of the slider. |
Example
The slider_setTickStyle.fla example file contains an example of using this method.
The following code demonstrates the different styles of tick marks.
mySlider_sld.setTickStyle("none"); //turns off ticks
mySlider_sld.setTickStyle("top"); //displays ticks on top
mySlider_sld.setTickStyle("bottom"); //displays ticks on bottom
mySlider_sld.setTickStyle("both"); //displays ticks both on top and bottom
See also